import request from "@/utils/request";
import userRequset from "@/utils/userRequset";
export function loginNow(data) {
  return request({
    url: "login",
    method: "post",
    data,
  });
}
export function getRepairlist1(data) {
  return request({
    url: "getRepairlist",
    method: "post",
    data,
  });
}
export function updateFixStatus(data) {
  return request({
    url: "updateFixStatus",
    method: "post",
    data,
  });
}
export function updateFixMoney(data) {
  return request({
    url: "updateFixMoney",
    method: "post",
    data,
  });
}
export function bossUpdateRepiar(data) {
  return request({
    url: "bossUpdateRepiar",
    method: "post",
    data,
  });
}
export function postAnswer(data) {
  return request({
    url: "postAnswer",
    method: "post",
    data,
  });
}
export function bossGetShoplist(data) {
  return request({
    url: "bossGetShoplist",
    method: "post",
    data,
  });
}
export function getUser(data) {
  return request({
    url: "getuserInfo",
    method: "post",
    data,
  });
}
export function bossDelShop(params) {
  return request({
    url: "bossDelShop",
    method: "get",
    params,
  });
}

export function updatePerson(data) {
  return userRequset({
    url: "updatePersons",
    method: "post",
    data,
  });
}
export function payFixed(data) {
  return userRequset({
    url: "payFixed",
    method: "post",
    data,
  });
}
export function personEvaluate(data) {
  return userRequset({
    url: "personEvaluate",
    method: "post",
    data,
  });
}
export function addRepair(data) {
  return userRequset({
    url: "addRepair",
    method: "post",
    data,
  });
}
export function getCommentById(data) {
  return userRequset({
    url: "getCommentById",
    method: "post",
    data,
  });
}
export function changeCard(data) {
  return userRequset({
    url: "changeCard",
    method: "post",
    data,
  });
}
export function addPersonAddress(data) {
  return userRequset({
    url: "addPersonAddress",
    method: "post",
    data,
  });
}
export function addFixList(data) {
  return userRequset({
    url: "addFixList",
    method: "post",
    data,
  });
}
export function getFixPerson(data) {
  return userRequset({
    url: "getFixPerson",
    method: "post",
    data,
  });
}
export function postUsermoney(data) {
  return userRequset({
    url: "postUsermoney",
    method: "post",
    data,
  });
}
export function updatePerAddress(data) {
  return userRequset({
    url: "updatePerAddress",
    method: "post",
    data,
  });
}
export function postMoney(data) {
  return userRequset({
    url: "postMoney",
    method: "post",
    data,
  });
}
export function addReturnlist(data) {
  return userRequset({
    url: "addReturnlist",
    method: "post",
    data,
  });
}
export function buyShop(data) {
  return userRequset({
    url: "buyShop",
    method: "post",
    data,
  });
}
export function changeActives(data) {
  return userRequset({
    url: "changeActives",
    method: "post",
    data,
  });
}
export function changeGoods(data) {
  return userRequset({
    url: "changeGoods",
    method: "post",
    data,
  });
}
export function personMoney(params) {
  return userRequset({
    url: "personMoney",
    method: "get",
    params,
  });
}
export function afterRepair(params) {
  return userRequset({
    url: "afterRepair",
    method: "get",
    params,
  });
}
export function getShopId(params) {
  return userRequset({
    url: "getShopId",
    method: "get",
    params,
  });
}
export function getRepairlist(data) {
  return userRequset({
    url: "getRepairlist",
    method: "post",
    data,
  });
}
export function postSalesVolume(data) {
  return userRequset({
    url: "postSalesVolume",
    method: "post",
    data,
  });
}
export function deleterPerAdd(params) {
  return userRequset({
    url: "deleterPerAdd",
    method: "get",
    params,
  });
}
export function personOrder(params) {
  return userRequset({
    url: "personOrder",
    method: "get",
    params,
  });
}
export function getShopDetail(params) {
  return userRequset({
    url: "getShopDetail",
    method: "get",
    params,
  });
}
export function getMyaddress(params) {
  return userRequset({
    url: "getMyaddress",
    method: "get",
    params,
  });
}
export function getAgeSearch(params) {
  return userRequset({
    url: "getAgeSearch",
    method: "get",
    params,
  });
}
export function getShopList(params) {
  return userRequset({
    url: "getShopList",
    method: "get",
    params,
  });
}
export function register(data) {
  return request({
    url: "register",
    method: "post",
    data,
  });
}
export function updatePasswords(data) {
  return request({
    url: "updatePasswords",
    method: "post",
    data,
  });
}

export function updatePassword(params) {
  return request({
    url: "updatePassword",
    method: "get",
    params,
  });
}
